import logging
def log():
    logging.basicConfig(filename='jiuxian.log',
                        level=logging.INFO,
                        filemode='w+',
                        format='%(filename)s-%(levelname)s-%(asctime)s-%(message)s')